import request from '@/utils/request'

// 查询承包商综合评级列表
export function listRating(query) {
  return request({
    url: '/cbs/evaluate/rating/list',
    method: 'get',
    params: query
  })
}

// 查询承包商综合评级详细
export function getRating(id) {
  return request({
    url: '/cbs/evaluate/rating/' + id,
    method: 'get'
  })
}

// 新增承包商综合评级
export function addRating(data) {
  return request({
    url: '/cbs/evaluate/rating',
    method: 'post',
    data: data
  })
}

// 修改承包商综合评级
export function updateRating(data) {
  return request({
    url: '/cbs/evaluate/rating',
    method: 'put',
    data: data
  })
}

// 删除承包商综合评级
export function delRating(id) {
  return request({
    url: '/cbs/evaluate/rating/' + id,
    method: 'delete'
  })
}
